[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 unsigned                Unsigned Integral Data Type

    The keyword unsigned may be applied to the char, short int, int, and
    long int types. The size (and representation) of an unsigned type is
    implementation-defined.

      Notes:    In Turbo C++, the size of an unsigned char is one
                byte and its value ranges from 0 to 255. Unsigned short
                int and unsigned int objects are two bytes and range in
                value from 0 to 65535. Unsigned longs are four bytes and
                their values range from 0 to 4294967295.

                If unsigned is used without the keyword int, the int is
                assumed.

                By default, "plain" chars are signed.

   -------------------------------- Example ---------------------------------

           unsigned char letter;
           unsigned short int value;
           unsigned short amount;
           unsigned int total;
           unsigned count;




See Also: Types char short int long signed
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson